package jman.competition04;

public class Vehicle {
	int speed;
	float size;
	public Vehicle(){
		
	}
	public Vehicle(float size){
		this.size=size;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	public float getSize() {
		return size;
	}
	public void setSize(float size) {
		this.size = size;
	}
	void move(){
		System.out.println("移动时：");
	}
	void speedUp(){
		this.speed+=10;
	}
	void speedDown(){
		this.speed+=10;
	}
}
